From 1a7490299e65d1471063a3a6651ac9faae9b7a76 Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Tue, 18 Oct 2005 19:07:03 +0100 Subject: [PATCH] Domain0 doesn't do initial VCPU hotplug via xenstore. Signed-off-by: Keir Fraser --- linux-2.6-xen-sparse/arch/xen/kernel/smpboot.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/linux-2.6-xen-sparse/arch/xen/kernel/smpboot.c b/linux-2.6-xen-sparse/arch/xen/kernel/smpboot.c index 4b84de07cc..20f96c0da3 100644 --- a/linux-2.6-xen-sparse/arch/xen/kernel/smpboot.c +++ b/linux-2.6-xen-sparse/arch/xen/kernel/smpboot.c @@ -313,10 +313,12 @@ static int setup_cpu_watcher(struct notifier_block *notifier, .callback = handle_vcpu_hotplug_event }; (void)register_xenbus_watch(&cpu_watch); - for_each_cpu(i) - vcpu_hotplug(i); - - printk(KERN_INFO "Brought up %ld CPUs\n", (long)num_online_cpus()); + if (!(xen_start_info->flags & SIF_INITDOMAIN)) { + for_each_cpu(i) + vcpu_hotplug(i); + printk(KERN_INFO "Brought up %ld CPUs\n", + (long)num_online_cpus()); + } return NOTIFY_DONE; } -- 2.30.2